package com.weixing.mall.core.enums;

import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * 操作类型
 *
 * @author siashan
 * @date  2019/8/29 15:54
 * @since 1.0
 */

@NoArgsConstructor
public enum OperateEnum  implements IBaseEnum<Integer> {
    R(2,"查询"),
    U(3,"修改"),
    D(4,"删除"),
    S(5,"保存"),
    C(1,"新增"),
    E(6,"导出"),
    ;

    private int value;
    private String desp;

    OperateEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
